package cn.sciento.farm.devicemanager.gateway.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.List;


@Data
@Component
@Configuration
@ConfigurationProperties(prefix = "emqttd.mqtt")
//@PropertySource(value = "classpath:mqtt.properties", encoding = "UTF-8")
public class MqttProperties {
    private String server;
    private String username;
    private String password;
    private String subclientId;
    private String pubclientId;
    private String mainclientId;
    private int timeout;
    private int qos = 0;
    private List<String> mainTopic;
    private List<String> sysTopic;
    private String logName;
    private String logLevel;
}
